package com.example.demo.controller;

import com.example.demo.entity.Live;
import com.example.demo.service.LiveService;
import com.example.demo.util.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Live)表控制层
 *
 * @author makejava
 * @since 2025-04-22 14:35:13
 */
@RestController
@RequestMapping("/live")
public class LiveController {
    /**
     * 服务对象
     */
    @Resource
    private LiveService service;
    // 查询
    @RequestMapping(value = "/selectAllLive", method = RequestMethod.GET)
    Result selectAllLive(Live live){
        return service.selectAllLive(live);
    }
    // 结算
    @RequestMapping(value = "/settlementLive", method = RequestMethod.GET)
    Result settlementLive(Live live){
        return service.settlementLive(live);
    }
    // 确认收款
    @RequestMapping(value = "/collectionLive", method = RequestMethod.GET)
    Result collectionLive(Live live){
        return service.collectionLive(live);
    }
}

